
<%@ page import="org.knowlege.KnowlegeType" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'knowlegeType.label', default: 'KnowlegeType')}" />
		<title><g:message code="default.list.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#list-knowlegeType" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
			</ul>
		</div>

		<div id="list-knowlegeType" class="content scaffold-list" role="main">
			<h1><g:message code="default.list.label" args="[entityName]" /></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<table>
				<thead>
					<tr>
					
						<g:sortableColumn property="typeCode" title="${message(code: 'knowlegeType.typeCode.label', default: 'Type Code')}" />
					
						<g:sortableColumn property="typeName" title="${message(code: 'knowlegeType.typeName.label', default: 'Type Name')}" />
					
						<g:sortableColumn property="priority" title="${message(code: 'knowlegeType.priority.label', default: 'Priority')}" />
					
						<g:sortableColumn property="remark" title="${message(code: 'knowlegeType.remark.label', default: 'Remark')}" />
					
						<g:sortableColumn property="createUser" title="${message(code: 'knowlegeType.createUser.label', default: 'Create User')}" />
					
						<g:sortableColumn property="dateCreated" title="${message(code: 'knowlegeType.dateCreated.label', default: 'Date Created')}" />
					
						<th><g:message code="operate.label" default="operate" /></th>
					</tr>
				</thead>
				<tbody>
				<g:each in="${knowlegeTypeInstanceList}" status="i" var="knowlegeTypeInstance">
					<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
					
						<td><g:link action="show" id="${knowlegeTypeInstance.id}">${fieldValue(bean: knowlegeTypeInstance, field: "typeCode")}</g:link></td>
					
						<td>${fieldValue(bean: knowlegeTypeInstance, field: "typeName")}</td>
					
						<td>${fieldValue(bean: knowlegeTypeInstance, field: "priority")}</td>
					
						<td>${fieldValue(bean: knowlegeTypeInstance, field: "remark")}</td>
					
						<td>${fieldValue(bean: knowlegeTypeInstance, field: "createUser")}</td>
					
						<td><g:formatDate date="${knowlegeTypeInstance.dateCreated}" format="yyyy-MM-dd" /></td>
					
						<td><g:link class="edit" action="edit" id="${knowlegeTypeInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
							<g:link class="edit" action="delete" id="${knowlegeTypeInstance?.id}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');">
							<g:message code="default.button.delete.label" default="Delete" /></g:link>
							
						</td>
					</tr>
				</g:each>
				</tbody>
			</table>
			<div class="pagination">
				<g:paginate total="${knowlegeTypeInstanceTotal}" />
			</div>
		</div>
	</body>
</html>
